package person.aoao.library.service;

import person.aoao.library.entity.SeatList;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import person.aoao.library.result.ResponseData;
import person.aoao.library.vo.SeatListPlus;

import java.util.List;

/**
 * (SeatList)表服务接口
 *
 * @author makejava
 * @since 2023-05-05 10:15:41
 */
public interface SeatListService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SeatList queryById(Integer id);

    /**
     * 分页查询
     *
     * @param seatList    筛选条件
     * @param pageRequest 分页对象
     * @return 查询结果
     */
    Page<SeatList> queryByPage(SeatList seatList, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param seatList 实例对象
     * @return 实例对象
     */
    SeatList insert(SeatList seatList);

    /**
     * 修改数据
     *
     * @param seatList 实例对象
     * @return 实例对象
     */
    SeatList update(SeatList seatList);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    List<SeatList> getSeatList(Integer fid);

    ResponseData getSeatListAll(Integer num, Integer page);

    ResponseData searchSeatList(String str, Integer fid, Integer state, Integer seattype, Integer num, Integer page);

    ResponseData getSeatListPlus(SeatListPlus qurey);

    ResponseData getToDayList(String date);
}
